enum dtype_record_define {
	TYPE(RECORD_DEFINE)=0x3210
};
enum subtype_record_define {
	SUBTYPE(RECORD_DEFINE,GOODS_INFO)=0x1,
	SUBTYPE(RECORD_DEFINE,ORDER),
	SUBTYPE(RECORD_DEFINE,DELIVERY)
};

enum enum_order_state
{
	INIT=0x01,
	COMMIT,
	PAID,
	CONFIRMED,
	GOODS_SEND,
    GOODS_RECV,
    SCORED,
    FINISH
};

typedef struct record_define_goods_info{
	char * name;
	char * id;
	char * info;
    int  num;
    int  cost;
}__attribute__((packed)) RECORD(RECORD_DEFINE,GOODS_INFO);


typedef struct record_define_order{
	char * order_id;
	char * guest;
	char * goods_name;
	char * goods_id;
    int  num;
    char * address;
    int  cost;
    char * note;
    int  score;
    char * evaluate;
    enum enum_order_state state;
}__attribute__((packed)) RECORD(RECORD_DEFINE,ORDER);

typedef struct record_define_delivery{
	char * name;
    char * id;
    int  num;
    char * send_addr;
    char * recv_addr;
    int  cost;
}__attribute__((packed)) RECORD(RECORD_DEFINE,DELIVERY);
